<template>
	<view>
		<u-cell-group>
			<u-cell-item title="开户银行:" :value="baseInfo.accountBank" :title-style="titleStyle" :value-style="valueStyle" :arrow="false"/>
			<u-cell-item title="开户名称:" :value="baseInfo.accountName" :title-style="titleStyle" :value-style="valueStyle" :arrow="false"/>
			<u-cell-item title="银行帐号:" :value="baseInfo.accountNumber" :title-style="titleStyle" :value-style="valueStyle" :arrow="false"/>
			<u-cell-item title="开户银行全称 （含支行):" :value="baseInfo.bankName" :title-style="titleStyle" :value-style="valueStyle" :arrow="false"/>
			<u-cell-item title="开户银行省市编码:" :value="baseInfo.bankAddressCode" :title-style="titleStyle" :value-style="valueStyle" :arrow="false"/>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				baseInfo: {},
				titleStyle: {
					color:'#888888'
				},
				valueStyle: {color:'#333333'}
			}
		},
		onLoad() {
			this.getInfo()
		},
		methods: {
			getInfo() {
				this.$u.api.getMerchantInfo().then(res=>{
					if(res.code == 0){
						this.baseInfo = res.data;
					}else{
						uni.showToast({
							icon:'none',
						    title: res.msg
						});
					}
				})
			},
		}
	}
</script>

<style scoped>
</style>
